package com.wps.wdztv6.api.request;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.*;

import java.util.List;

/**
 * 限制编辑请求
 */
@Data
@Builder
public class BookmarkPermissionsRequest {
    // 任务id
    @JSONField(name = "task_id")
    private String taskId;

    // 图片地址
    @JSONField(name = "doc_url")
    private String docUrl;

    // 图片名称，必须带后缀
    @JSONField(name = "doc_filename")
    private String docFilename;

    //设置所有存在的书签可编辑或不可编辑，
    //bookmark_permissions和all_editable选项只能
    //二选一，且必须设置其中一个值
    @JSONField(name = "all_editable")
    private Boolean allEditable;

    //@JSONField(name="bookmark_permissions")
    @JSONField(name = "bookmark_permissions")
    private List<BookmarkPermission> bookmarkPermissionList;

    @Getter
    @Setter
    @ToString
    public static class BookmarkPermission {
        private String name;
        private Boolean editable;
    }
}
